<%@page import="at.ac.tuwien.big.we14.lab2.api.Game"%>
<jsp:useBean id="playerstatus" class="at.ac.tuwien.big.we14.lab2.api.impl.SimplePlayersStatus" scope="session"/>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Business Informatics Group Quiz - Spielende</title>
        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/style/screen.css" />
        <script src="<%=request.getContextPath() %>/js/jquery.js" type="text/javascript"></script>
        <script src="<%=request.getContextPath() %>/js/framework.js" type="text/javascript"></script>
    </head>
    <body id="winnerpage">
        <a class="accessibility" href="#roundwinner">Zur Spielwertung springen</a>
        <%@ include file="header.jsp" %>
        
        <section role="main">
            <!-- winner message -->
            <section id="roundwinner" aria-labelledby="roundwinnerheading">
                <h2 id="roundwinnerheading" class="accessibility">Endstand</h2>
                <p class="roundwinnermessage"><%= playerstatus.getWinner() %> gewinnt!</p>
            </section>
        
            <!-- round info -->    
            <section id="roundinfo" aria-labelledby="roundinfoheading">
                <h2 id="roundinfoheading" class="accessibility">Spielerinformationen</h2>
                <div id="player1info" class="playerinfo">
                    <span id="player1name" class="playername"><%= playerstatus.getPlayer0Name() %></span>
                    <p id="player1roundcounter" class="playerroundcounter">Gewonnene Runden: <span id="player1wonrounds" class="playerwonrounds"><%= playerstatus.getPlayer0WonRounds() %></span></p>
                </div>
                <div id="player2info" class="playerinfo">
                    <span id="player2name" class="playername"><%= playerstatus.getPlayer1Name() %></span>
                    <p id="player2roundcounter" class="playerroundcounter">Gewonnene Runden: <span id="player2wonrounds" class="playerwonrounds"><%= playerstatus.getPlayer1WonRounds() %></span></p>
                </div>
                <form action="<%= Game.ACTION_GAME %>" method="POST">
           	 		<input type="hidden" name="action" value="<%= Game.ACTION_GAME %>"/>
          	 		<input id="next" type="submit" value="Neues Spiel" name="submit" />
          		</form>
                <!--a id="next" href="question.html" accesskey="n">Neues Spiel</a-->
            </section>
        </section>

        <!-- footer -->
        <footer role="contentinfo">© 2014 BIG Quiz</footer>
    </body>
</html>
